export const schema = {
    type: "page",
    title: "提现账号设置",
    initApi: "get:/api/teamcashinfo/my?_=${_}",
    toolbar: [
        // {
        //     type: "button",
        //     actionType: "submit",
        //     // className: 'pull-right',
        //     label: "提交审核",
        //     icon: "fa fa-save pull-left",
        //     level: "primary",
        //     confirmText: "确定要重新提交审核？",
        //     target: "casheditform",
        //     // api: "post:/api/teamcashinfo",
        //     // redirect: "/project/edit/${id}"
        // },
        {
            type: "button",
            actionType: "submit",
            label: "提交审核",
            icon: "fa fa-save pull-left",
            level: "primary",
            confirmText: "确定要重新提交审核？",
            target: "casheditform"
        },
    ],
    body: [
        {
            visibleOn: 'data.verify_status == 1',
            type: 'tpl',
            tpl: `<div class="alert alert-success">审核已通过</div>`
        },
        {
            visibleOn: 'data.verify_status == 0',
            type: 'tpl',
            tpl: `<div class="alert alert-warning">审核中</div>`
        },
        {
            visibleOn: 'data.verify_status == 2',
            type: 'tpl',
            tpl: `<div class="alert alert-failed">审核失败</div>`
        },
        {
            api: "post:/api/teamcashinfo",
            submitText: "",
            name: "casheditform",
            redirect: '/home',
            type: "form",
            title: "",
            mode: "horizontal",
            actions: [
                {
                    type: 'submit',
                    primary: true,
                    label: "提交审核",
                    icon: "fa fa-save pull-left",
                    confirmText: "确定要重新提交审核？"
                }
            ],
            fieldSet: [
                {
                    title: "申请人信息",
                    subTitle: "请准确提供并及时更新您提供的电子邮件地址、联系方式等，以便公司与您进行联系。",
                    controls: [
                        [
                            {
                                type: "text",
                                name: "contacts_realname",
                                label: "姓名",
                                required: true,
                                // inline: true,
                            },
                            {
                                type: "text",
                                name: "contacts_email",
                                label: "邮箱",
                                validations: 'isEmail',
                                required: true,
                                // inline: true,
                            }
                        ],
                        [
                            {
                                type: "text",
                                name: "phone",
                                label: "手机号",
                                validations: 'isPhone',
                                required: true
                            },
                            {
                                label: "短信验证码",
                                type: "phone-code",
                                name: "code",
                                sendApi: 'post:/api/login/verifyphone',
                                phoneFieldName: "phone",
                                // className: 'list-group-item m-l-none m-r-none',
                                // inputClassName: 'no-border no-shadow  p-l-none p-r-none',
                                required: true,
                                // label: false,
                            }
                        ],
                        {
                            type: "text",
                            name: "contacts_idno",
                            label: "身份证号",
                            validations: 'isIDStrict',
                            required: true
                        },
                        {
                            type: "image",
                            name: "contacts_id_card_front",
                            label: "身份证正面照片",
                            multiple: false,
                            // accept: "image/png,image/jpeg",
                            maxSize: 10 * 1024 * 1024,
                            desc: '身份证正面照，请保障清晰，请不要超过 10M',
                            required: true
                        },
                        {
                            type: "image",
                            name: "contacts_id_card_back",
                            label: "身份证反面照片",
                            multiple: false,
                            // accept: "image/png,image/jpeg",
                            maxSize: 10 * 1024 * 1024,
                            desc: '身份证反面照，请保障清晰，请不要超过 10M',
                            required: true
                        },
                        {
                            type: "image",
                            name: "contacts_id_card_people",
                            label: "手持身份证照片",
                            multiple: false,
                            // accept: "image/png,image/jpeg",
                            maxSize: 10 * 1024 * 1024,
                            desc: '将持证的手臂和上半身拍进照片，脸部清晰不能被遮挡，请不要超过 10M。<a href="${__uri(\'./查看示例.xls\')}"  target="_blank">查看示例</a>',
                            required: true
                        }
                    ]
                },

                {
                    title: "收款账号信息",
                    subTitle: "志多星对公账号为建设银行，转账按建行规定收取一定手续费，志多星不收取任何中介费用",
                    controls: [
                        {
                            type: "radios",
                            label: "账号性质",
                            name: "bank_card_type",
                            columnsCount: 2,
                            // desc: '',
                            options: [
                                {
                                    label: "个人账号",
                                    value: "1"
                                },
                                {
                                    label: "对公账号",
                                    value: "2"
                                },
                            ],
                            required: true
                        },

                        {
                            type: "text",
                            label: "户名",
                            name: "bank_card_account",
                            // className: "m-b-none",
                            required: true
                        },


                        {
                            type: "text",
                            label: "账户号",
                            name: "bank_card_num",
                            // className: "m-b-none",
                            required: true

                        },

                        {
                            type: "text",
                            label: "开户银行",
                            name: "bank_company",
                            // className: "m-b-none",
                            required: true

                        },
                        {
                            type: "text",
                            label: "开户支行",
                            name: "bank_branch",
                            // className: "m-b-none",
                            required: true

                        },
                        {
                            type: "text",
                            label: "开户行地址",
                            // placeholder: "",
                            name: "bank_card_open_addr",
                            // className: "m-b-none",
                            required: true

                        },
                        {
                            type: "text",
                            label: "开户行联行号",
                            name: "bank_connect_code",
                            // className: "m-b-none",
                            required: true
                        },
                        {
                            type: "file",
                            name: "auth_document",
                            label: "提款授权证明",
                            required: true,
                            accept: '*',
                            // desc: '将持证的手臂和上半身拍进照片，脸部清晰不能被遮挡，请不要超过 10M',
                        },

                        {
                            type: 'tpl',
                            className: '',
                            // visibleOn: 'data.volunteer_type == 3',
                            tpl: `<div style="padding-left: 17.3%;">机构如需提款至个人账户，需提供提款授权证明，多个文件请以Zip压缩包上传。 <a href="${__uri('./提款授权证明.xls')}"  target="_blank">提款授权证明下载</a></div>`
                        },

                        {
                            type: "checkbox",
                            option: '我已阅读<a target="_blank" href="/agreement">《志多星代收使用协议》</a>',
                            name: 'agree',
                            // label: '',
                            required: true,
                            // noOffset: true,
                            trueValue: '1',
                            falseValue: '',
                            validationErrors: {
                                isDefaultRequiredValue: '请阅读《志多星代收使用协议》'
                            }
                        }
                    ]
                }
            ]
        }
    ]
};
